package com.shop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 商品评价 实体类。
 *
 * @author 彭新才
 * @since 2024-10-12
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "商品评价")
@Table(value = "shop_product_comment")
public class ShopProductComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评价id
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "评价id")
    private Long id;

    /**
     * 评分 (10好评 20中评 30差评)
     */
    @Schema(description = "评分 (10好评 20中评 30差评)")
    private Integer score;

    /**
     * 描述评分
     */
    @Schema(description = "描述评分")
    private Integer describeScore;

    /**
     * 物流服务评分总分5分
     */
    @Schema(description = "物流服务评分总分5分")
    private Integer expressScore;

    /**
     * 服务态度评分总分5分
     */
    @Schema(description = "服务态度评分总分5分")
    private Integer serverScore;

    /**
     * 评价内容
     */
    @Schema(description = "评价内容")
    private String content;

    /**
     * 是否为图片评价
     */
    @Schema(description = "是否为图片评价")
    private Integer isPicture;

    /**
     * 评价排序
     */
    @Schema(description = "评价排序")
    private Integer sort;

    /**
     * 评价状态(0=待审核 1=审核通过2=审核不通过)
     */
    @Schema(description = "评价状态(0=待审核 1=审核通过2=审核不通过)")
    private Integer status;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;

    /**
     * 订单id
     */
    @Schema(description = "订单id")
    private Long orderId;

    /**
     * 商品id
     */
    @Schema(description = "商品id")
    private Long productId;

    /**
     * 订单商品id
     */
    @Schema(description = "订单商品id")
    private Long orderProductId;

    /**
     * 软删除
     */
    @Schema(description = "软删除")
    private Long isDelete;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Timestamp updateTime;

    /**
     * 供应商id
     */
    @Schema(description = "供应商id")
    private Integer shopSupplierId;

}
